const mongoose = require('mongoose')
var userSchema = new mongoose.Schema({
    us: { type: String, required: true },
    ps:{ type: String, required: true },
    age:{ type: Number},
    sex:{ type: Number, default:0}
})
//将schema对象转化为数据模型
var user=mongoose.model('users',userSchema)
module.exports=user